home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / machack / Hacks97 / WarriorsProgress.sit / Warrior’s Progress / source code / Source / Libraries / Views / Arrangements / ConstArrangementLoop.cp < prev    next >
Text File  |  1997-06-28  |  415b  |  20 lines

  1. // ConstArrangementLoop.cp
  2.  
  3. #ifndef ConstArrangementLoop_h
  4. #include "ConstArrangementLoop.h"
  5. #endif
  6.  
  7. ConstArrangementLoop::ConstArrangementLoop( const ArrangementBase& theArrangement )
  8.   : arrangement( theArrangement ),
  9.      index( 0 )
  10.   {
  11.     for ( ; Unfinished() && (*this)->IsEmpty(); index++ )
  12.         ;
  13.   }
  14.  
  15. void ConstArrangementLoop::operator++()
  16.   {
  17.     for ( index++; Unfinished() && (*this)->IsEmpty(); index++ )
  18.         ;
  19.   }
  20.